local sprotoparser = require "sprotoparser"
local sproto = {}


-----------------------------------------------------------
--客户端发送给服务端
-----------------------------------------------------------
sproto.c2s = sprotoparser.parse [[
.package {
	type 0 : integer
	session 1 : integer
}

Login 1 {
	request {
		token 0: integer 		#密钥
	}
}


]]


-----------------------------------------------------------
--服务端发送给客户端
-----------------------------------------------------------
sproto.s2c = sprotoparser.parse [[
.package {
	type 0: integer
	session 1: integer
}

LoginOK 1 {
	request {
		iRet 0: integer 		#0成功，1不成功
	}
}

]]


return sproto